package com.teama4.shop.mapper;

import com.teama4.shop.domain.Commodity;
import com.teama4.shop.domain.CommoditySpecification;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SearchMapperExt {
    List<Commodity> searchByName(@Param("name1")String name1, @Param("name2")String name2, @Param("name3")String name3, @Param("name4")String name4 , @Param("sort")String sort);
    List<Commodity> searchedByBuyCount(@Param("name1")String name1, @Param("name2")String name2, @Param("name3")String name3, @Param("name4")String name4, @Param("sort")String sort);
    List<Commodity> searchedByPrice(@Param("name1")String name1, @Param("name2")String name2, @Param("name3")String name3, @Param("name4")String name4, @Param("sort")String sort);
    List<Commodity> searchedByViewCount(@Param("name1")String name1, @Param("name2")String name2, @Param("name3")String name3, @Param("name4")String name4, @Param("sort")String sort);
    List<Commodity> searchedByMaxMinPrice(@Param("name1")String name1, @Param("name2")String name2, @Param("name3")String name3, @Param("name4")String name4, @Param("maxPrice")Double maxPrice,@Param("minPrice")Double minPrice);

}
